package company.traits

trait Containable {

    def addNumber(number: Int, max: Int, numbers: List[Int]) = {
      if (numbers.size <= max) 
        numbers.::(number)
      else {
        numbers.drop(1)
        numbers.::(number)
      }
    }
}